wrUnderrun
These are the codes returned by a system crash and by such Toolbox and OS
functions as are designed to return an error message. They're also what you
see when you make specific error calls, such as, MemError, ResError, or
PrError. The C header files provide no comprehensive listing; however,
relevant #define constant definitions are found in the header files for each
Manager. Some return code values have several meanings, depending upon the
context in which they are obtained. Remember that the System error box
displays hex values, so you have to convert them to decimal to use this list.
System errors 1, 2, 3, 28 and 33 are usually the result of a "bad pointer".
If you get these errors, use a debugger (like Macsbug or TMON) when you
attempt to reproduce the error, to check the consistency of the heap up to the
point where the error occurs. You may need to do this repeatedly until you
isolate the operation that is corrupting the heap. Although the heap may
become corrupted during a system call, this usually doesn't mean you have
found a bug in the ROM; your code is more likely passing incorrect or invalid
parameters to this or a previous system call, or could have corrupted a data
structure used by a system call. More debugging is usually in order in this
case; tools like Discipline ( included in TMON) can help detect invalid
parameters in system calls. Also, there is a Macsbug command, ATHC, that can
check the consistency of the heap on every system call.
Use the Find... function (F and G) to locate a numeric value in the
following list (remember that these are decimal numbers):
System Errors
-10 dsMacsBugInstalled MacsBug Installed message
-11 dsDisassemblerInstalled Disassembler installed message
-12 dsHD20Installed Say "HD20 Startup
-13 dsExtensionsDisabled Extensions disabled message
-126 mBarNFnd System error for 'MBDF' not found
-127 hMenuFindErr Could not find HMenu's parent in MenuKey
-490 userBreak Debugger break
-491 strUserBreak Debugger break; display string on stack
-492 exUserBreak Debugger break; debugger commands on stack
1 dsBusError Bus error, invalid memory reference
2 dsAddressErr Address error (odd address)
3 dsIllInstErr Illegal instruction
4 dsZeroDivErr Divide by zero error
5 dsChkErr Check trap (CHK instruction) range check error
6 dsOvflowErr Arithmetic overflow (cpTrapCC, Trap CC, Trap V)
7 dsPrivErr Privilege violation
8 dsTraceErr Trace trap
9 dsLineAErr Line 1010 exception: A-Trap (trap dispatcher
err)
10 dsLineFErr Line 1111 exception: F-Trap (Unimplemented
opcode)
11 dsMiscErr Miscellaneous hardware exception
12 dsCoreErr Unimplemented trap executed, CP Protocol
Violation
13 dsIrqErr Spurious interrupt, or interrupt button pressed
14 dsIOCoreErr I/O system error
15 dsLoadErr Segment loader error
16 dsFPErr Floating point error
17 dsNoPackErr Can't load package 0
18 dsNoPk1 Can't load package 1
19 dsNoPk2 Can't load package 2
20 dsNoPk3 Can't load package 3
21 dsNoPk4 Can't load package 4
22 dsNoPk5 Can't load package 5
23 dsNoPk6 Can't load package 6
24 dsNoPk7 Can't load package 7
25 dsMemFullErr Out of memory
26 dsBadLaunch Can't launch file (can't load CODE resource 0)
27 dsFSErr File system map is damaged
28 dsStknHeap Stack has moved into application heap
29 ( unused) ( unused)
30 dsReinsert "Please insert the disk:" File Manager error
31 dsNotThe1 User inserted wrong disk (rare as a System
Error)
32 Set logical memory size error
33 negZcbFreeErr ZcbFree (free memory) has gone negative
34 Error in adjusting internal memory counters
35 Error in freeing a memory block
36 Set memory size error
37 Unable to initialize Memory Manager
38
39
40 dsGreeting Welcome to Macintosh greeting
41 dsFinderErr Can't load the Finder error
42 shutDownAlert Handled like a shutdown error
42 dsBadStartupDisk Unable to mount boot volume (sad mac only)
43 dsSystemFileErr Can't find System to open (sad mac only)
43..50
51 dsBadSlotInt Unserviceable slot interrupt
52
53
54..80 ( unused)
81 dsBadSANE opcode Bad opcode given to SANE Pack 4
82
83
84 menuPrgErr A menu has been purged
85 dsMBarNFnd Menu bar not found
86 dsHMenuFindErr Menu manager error
87 dsWDEFnFnd Could not load WDEF
87 WDEFNFnd Obsolete equivalent to dsWDEFnFnd
88 dsCDEFnFnd Could not load CDEF
89 CDEFNFnd Obsolete equivalent to dsCDEFnFnd
89 dsMDEFNotFound Count not load MDEF
90 dsNoFPU NoFPU available to execute instruction
91..97 ( unused)
98 dsNoPatch Can't patch for particular Model Mac
99 dsBadPatch Can't load patch resource
100 Can't mount startup disk (damaged/missing
system)
101 dsParityErr Memory parity error
102 dsOldSystem System too old for this ROM
103 ds32BitMode Trying to boot in 32-bit mode on 24-bit system
104 dsNeedToWriteBootBlocks Need to write new boot blocks
105 notEnoughRAMToBoot Need 1.5 MB of RAM to Boot System 7
106 dsBufPtrTooLow BufPtr moved too far during boot
20000 dsShutDownOrRestart User chooses between ShutDown and Restart
20001 dsSwitchOffOrRestart User chooses between switching off and Restart
20002 dsForcedQuit allow the user to ExitToShell, return if Cancel
32767 dsSysErr General system error
Slot Declaration ROM Manager Errors
1 siInitSDTblErr Slot int dispatch table could not be initialized
2 siInitVBLQsErr VBL queues for all slots could not be initialized
3 siInitSPTblErr Slot priority table could not be initialized
10 sdmJTInitErr SDM Jump Table could not be initialized
11 sdmInitErr SDM could not be initialized
12 sdmSRTInitErr Slot Resource Table could not be initialized
13 sdmPRAMInitErr Slot PRAM could not be initialized
14 sdmPriInitErr Cards could not be initialized
SCSI Manager Errors
2 scCommErr Communications error (operations timeout)
3 scArbNBErr Arbitration failed during SCSIGet - Bus busy
4 scBadparmsErr Bad parameter or TIB opcode
5 scPhaseErr SCSI bus not in correct phase for operation
6 scCompareErr SCSI Mgr busy when SCSIGet was called
7 scMgrBusyErr SCSI Mgr busy when SCSIGet was called
8 scSequenceErr Operation out of sequence
(e.g., calling SCSISelect before SCSIGet)
9 scBusTOErr Bus timeout before data ready
(on SCSIRBlind and SCSIWBlind)
10 scComplPhaseErr SCSIComplete failed - bus not in Status phase
Serial Driver Error Masks
1 swOverrunErr Serial Driver overrun error
16 parityErr Serial parity error
32 hwOverrunErr Serial hardware overrun
64 framingErr Serial framing error
Print Manager Manager Errors
128 iPrAbort Application or user requested abort
2 OpNotImpl PrGeneral error code. This error should be
defined in PrintTraps.h but isn't
1 NoSuchRsl PrGeneral error code
-1 iPrSavPFil Error saving print file
-108 iMemFullErr Not enough room in heap zone
Event Manager Errors
1 evtNotEnb Event not enabled at PostEvent
-607 bufferIsSmall Post/Accept buffer is too small
-608 noOutstandingHLE No high-level event ready
-609 connectionInvalid invalid connection
-610 noUserInteractionAllwed no interaction with that user is allowed
General System Errors
0 noErr 0 for success (you may treat calls as Boolean)
-1 qErr Queue element not found during deletion
-2 vTypErr Invalid queue element
-3 corErr Core routine number out of range
-4 unimpErr Unimplemented core routine
-5 SlpTypeErr invalid queue element
-8 seNoDB No debugger installed to handle debugger command
Color Manager Errors
-9 iTabPurgErr From Color2Index/ITabMatch
-10 noColMatch From Color2Index/ITabMatch
-11 qAllocErr From MakeITable
-12 tblAllocErr From MakeITable
-13 overRun From MakeITable
-14 noRoomErr From MakeITable
-15 seOutOfRange From SetEntryColor
-16 seProtErr From SetEntryColor
-17 i2CRangeErr From SetEntryColor
-18 gdBadDev From SetEntryColor
-19 reRangeErr From SetEntryColor
-20 seInvRequest From SetEntryColor
-21 seNoMemErr From SetEntryColor
I/O Errors
-17 controlErr Driver can't respond to Control call
-18 statusErr Driver can't respond to Status call
-19 readErr Driver can't respond to Read call
-20 writErr Driver can't respond to Write call
-21 badUnitErr Driver ref num doesn't match unit table
-22 unitEmptyErr Driver ref num specifies NIL handle in unit table
-23 openErr Requested read/write permission doesn't match
driver's open permission, or attempt to open RAM
serial driver failed
-24 closErr Close failed
-25 dRemovErr Tried to remove an open driver
-26 dInstErr DrvrInstall couldn't find driver in resources
-27 abortErr I/O call aborted by KillIO
-27 iIOAbortErr I/O abort error (Printing Manager)
-28 notOpenErr Couldn't rd/wr/ctl/sts because driver not opened
-29 unitTblFullErr Unit table has no more entries
-30 dceExtErr DCE extension error
File System Errors
-33 dirFulErr Directory full
-34 dskFulErr Disk full
-35 nsvErr No such volume
-36 ioErr I/O error
-37 bdNamErr Bad name in the file system
-38 fnOpnErr File not open
-39 eofErr End of file
-40 posErr Tried to position to before start of file
-41 mFulErr Memory full (open) or file won't fit (load)
-42 tmfoErr Too many files open
-43 fnfErr File not found
-44 wPrErr Diskette is write protected
-45 fLckdErr File is locked